// 护理员排班
import request from "@/utils/request";

// 查询护理员排班列表
export function listNurseSchedule(query) {
  return request({
    url: "/nursing/schedule/list",
    method: "get",
    params: query,
  });
}

// 查询护理员排班详细
export function getNurseSchedule(scheduleId) {
  return request({
    url: "/nursing/schedule/" + scheduleId,
    method: "get",
  });
}

// 新增护理员排班
export function addNurseSchedule(data) {
  return request({
    url: "/nursing/schedule",
    method: "post",
    data: data,
  });
}

// 修改护理员排班
export function updateNurseSchedule(data) {
  return request({
    url: "/nursing/schedule",
    method: "put",
    data: data,
  });
}

// 删除护理员排班
export function deleteNurseSchedule(scheduleId) {
  return request({
    url: "/nursing/schedule/" + scheduleId,
    method: "delete",
  });
}

// 导出护理员排班
export function exportNurseSchedule(query) {
  return request({
    url: "/nursing/schedule/export",
    method: "get",
    params: query,
  });
}

// 批量添加护理员排班
export function batchAddNurseSchedule(data) {
  return request({
    url: "/nursing/schedule/batch",
    method: "post",
    data: data,
  });
}
